/*
 * @Description: 官网主页
 * @Author: shuaishuai.wang
 * @Date: 2019-09-17 09:24:19
 * @Last Modified by: shuaishuai.wang
 * @Last Modified time: 2019-09-17 09:25:40
 */
<template>
  <component :is="componentId"></component>
</template>

<script>
export default {
  data () {
    return {
      componentId: ''
    }
  },
  mounted () {
    // 判断当前设备，选择不同组件加载，用以区分移动端与PC端
    if (this.judgeMobile()) { // 判断当前是移动端
      this.componentId = 'mobile-index'
    } else {
      this.componentId = 'pc-index'
    }
  }
}
</script>

<style>
</style>
